/*
 * @Author: maolin lin.mao3@gientech.com
 * @Date: 2024-08-21 09:38:46
 * @Description:
 */
// Register icon sprite
import "@/assets/styles/index.scss";

import { createApp } from "vue";
import "virtual:svg-icons-register";
import { setupGlobDirectives } from "@/directives";
import { setupRouter } from "@/router";
// import { setupRouterGuard } from '@/router/guard/index';
import { registerComponent } from "@/components";
import CfaeComponents from 'cfae-components-test'
import 'cfae-components-test/dist/index.css'
import App from "./App.vue";
import { setupStore } from "@/store";
import VueUeditorWrap from "vue-ueditor-wrap";
import print from "vue3-print-nb";

async function bootstrap() {
  const app = createApp(App);

  // Configure store
  // 配置 store
  setupStore(app);

  // Configure routing
  // 配置路由
  setupRouter(app);

  // router-guard
  // 路由守卫
  // setupRouterGuard(router);

  // Register global directive
  // 注册全局指令
  setupGlobDirectives(app);

  // 注册全局组件
  registerComponent(app);
  app.use(VueUeditorWrap);
  app.use(print);
  app.use(CfaeComponents);
  app.mount("#app");
}

bootstrap();
